<!DOCTYPE html>
<html>
  <head>
    <title>角色详情</title>
 		<#include "fsoft-common.ftl" />
 		<#-- 引入eleTree树控件的样式 -->
 		<link rel="stylesheet" href="${request.contextPath}/plugins/layui/extend/eleTree/eleTree.css">
  </head>
  <body>
    <div class="layui-fluid">
      <div class="layui-card">
        <div class="layui-card-body">
          <form class="layui-form layui-form-pane" action="" method="post" id="roleForm" lay-filter="roleForm">
            <input type="hidden" class="layui-input" name="id" id="id" value="${role.id}"/>
            <input type="hidden" class="layui-input" name="menus" id="menus" />
            <div class="layui-row layui-col-space5">
              <div class="layui-col-sm6 layui-col-xs12">
                <div class="layui-form-item">
                  <label class="layui-form-label">角色编码</label>
                  <div class="layui-input-block">
                    <input type="text" class="layui-input layui-disabled" id="code" name="code" value="${role.code}" readonly="readonly">
                  </div>
                </div>
              </div>
              <div class="layui-col-sm6 layui-col-xs12">
                <div class="layui-form-item">
                  <label class="layui-form-label">角色名称</label>
                  <div class="layui-input-block">
                    <input type="text" class="layui-input layui-disabled" id="name" name="name" value="${role.name}" readonly="readonly">
                  </div>
                </div>
              </div>
              <div class="layui-col-sm2 layui-col-sm-offset10">
                <div class="layui-btn-container">
                  <button class="layui-btn layui-btn-normal" lay-submit lay-filter="save">
                    <i class="fa fa-save" aria-hidden="true" ></i> 保 存
                  </button>
                </div>
              </div>
            </div>
            <div class="layui-row layui-col-space5">
              <div class="layui-col-sm12">
                <div class="layui-form-item layui-form-text">
                  <label for="name" class="layui-form-label">权限</label>
                  <div class="layui-input-block">
                    <ul class="fsoft-res-tree" id="roleMenuTree" name="menus"></ul>
                  </div>
                </div>
              </div>
            </div>
          </form>
        </div>
	    </div>
    </div>
  </body>
	<#include "fsoft-common-foot.ftl" />
  <script type="text/javascript">
    layui.extend({eleTree:'eleTree/eleTree'});
	</script>
	<script type="text/javascript" src="${request.contextPath}/static/fsoft-web/role/sysrole-info.js?v=201906"></script>
</html>
